-- 从左到右 1-高级地图，2-中级地图，3-初级地图，4-新手之家，5-传送员，6-boss之家
local NPC_POINTS = { { 424, 482, 0x00d100 }, { 569, 488, 0x00dc00 }, { 705, 492, 0x03230c }, { 846, 490, 0x121c1c }, { 994, 490, 0x112a0b }, { 560, 581, 0x082506 } }
local ZHONGJI_LEVEL1_POINTS = { { 220, 136, 0x000000 }, { 557, 140, 0xeedf01 }, { 386, 205, 0x625c06 }, { 216, 256, 0x090801 }, { 561, 255, 0x060600 } }
CHUJI_LEVEL1_POINTS = { { 198, 139, 0xd3c504 }, { 388, 142, 0xf7e700 }, { 572, 142, 0x000000 }, { 192, 225, 0xa09506 }, { 380, 228, 0x4f4a05 }, { 568, 228, 0x030302 } }
XINSHOU_LEVEL1_POINTS = { { 151, 112, 0x000000 }, { 293, 120, 0xe7d802 }, { 448, 115, 0xeedf01 }, { 616, 121, 0x0e0c0a }, { 140, 196, 0x000000 }, { 297, 192, 0x12100b }, { 453, 192, 0x000000 }, { 616, 195, 0x090907 }, { 140, 261, 0x211f19 }, { 304, 267, 0xf7e700 }, { 461, 260, 0x000000 }, { 617, 263, 0x0b0b08 } }
BOSS_POINTS = { { 478, 149, 0x2b271c }, { 474, 235, 0x28241a } }
ENTRY_POINT = { 351, 261, 0x212019 }
-- 小鬼传奇
local Config = {
    -- 基础配置
    SCREEN_WIDTH = 900,   -- 屏幕宽度
    SCREEN_HEIGHT = 1600, -- 屏幕高度

    -- 战斗配置
    COMBAT = {
        ATTACK_INTERVAL = 2200,             -- 专属攻击间隔(ms)
        DETECTION_THRESHOLD = 88,           -- 颜色检测阈值
        AUTO_ATTACK_COORDS = { 1465, 415 }, -- 自动攻击按钮坐标
        -- 自动攻击颜色特征
        AUTO_ATTACK_STATUS_COLORS = { { 1462, 411, 0xd4b973 }, { 1460, 419, 0xbc9b56 }, { 1470, 421, 0x836c3f }, { 1469, 418, 0xc3a35e } },
        ATTACKING_MONSTER_COLORS = { -- 怪物头框颜色
            { 35, 337, 0xc5a760 },
            { 42, 342, 0xb69751 },
            { 40, 346, 0xbc9d53 },
            { 42, 355, 0x9b7b3b }
        },
        -- 敌人头框颜色
        EXIST_ENEMY_COLORS = {{102, 72, 0xe1c583},{102, 73, 0xddc282},{105, 75, 0x98763f},{108, 78, 0xc6ab74}}
    },

    -- 地图配置
    MAP = {
        IS_OPEN_MAP_COLORS = { { 1353, 113, 0xb50c0c }, { 1359, 113, 0xb20b0b }, { 1356, 124, 0x5e1f0d }, { 1363, 137, 0x610c0c } },
        OPEN_MAP_COORDS = { 1500, 121 },
        CLOSE_MAP_COORDS = { 1360, 123 },
        USE_RANDOM_STONE_COORDS = { 1145, 735 },
        USE_BACK_STONE_COORDS = { 1147, 651 },
        USE_FLY_BUN_COORDS = { 1266, 731 },
        USE_FLY_ENTRY_COLORS = { { 860, 518, 0xffffff }, { 861, 518, 0xffffff }, { 867, 519, 0xffffff }, { 870, 519, 0xffffff }, { 874, 519, 0xffffff } },
        -- 活动地图坐标
        ACTIVITY_MAP_COORDS = { { 44, 254, 0xf7e700 }, { 64, 253, 0x000000 }, { 77, 255, 0xf7e700 }, { 89, 253, 0xf7e700 }, { 94, 253, 0xf7e700 }, { 115, 252, 0xf7e700 }, { 123, 252, 0xf7e700 }, { 133, 253, 0xf7e700 } },
    },

    -- 背包配置
    INVENTORY = {
        BAG_OPEN_COORDS = { 1556, 323, 0xf1ebc3 }, -- 打开背包按钮坐标
        RECYCLE_COORDS = { 795, 623, 0xcad1db },   -- 回收装备按钮坐标
        SORT_BAG_COORDS = { 585, 625, 0x000000 },  -- 整理背包按钮坐标
        BAG_CLOSE_COORDS = { 918, 142, 0x1f0b05 }, -- 关闭背包按钮坐标
        BAG_SLOTS = {
            { 122, 187, 800 },
            { 124, 288, 800 },
            { 124, 375, 800 }
        },
        RECYCLE_SEQUENCE = {
            { 1460, 322, 800 },
            { 687,  618, 800 },
            { 1156, 611, 800 },
            { 1408, 179, 800 },
            { 915,  148, 800 }
        }
    },

    -- 移动配置
    MOVEMENT = {
        -- 玛雅导航颜色配置
        MAYA_NAVIGATION = {
            LEVEL2_COLORS = {
                { 1538, 13, 0xeae8e7 },
                { 1553, 13, 0xffffff },
                { 1537, 28, 0xffffff },
                { 1555, 28, 0xffffff }
            }, -- 玛雅二层入口颜色特征

            LEVEL3_COLORS = {
                { 1538, 12, 0xffffff },
                { 1554, 12, 0xe7e6e5 },
                { 1539, 20, 0xecebea },
                { 1552, 20, 0xffffff },
                { 1537, 28, 0xffffff },
                { 1555, 28, 0xffffff }
            }, -- 玛雅三层入口颜色特征

            HALL_COLORS = {
                { 1533, 11, 0xffffff },
                { 1536, 11, 0xffffff },
                { 1533, 17, 0xffffff },
                { 1541, 17, 0xffffff },
                { 1538, 22, 0xf7f6f6 },
                { 1537, 26, 0xffffff }
            } -- 玛雅大厅入口颜色特征
        },
        -- 安全区地图名称
        SAFE_ZONE_COLORS = {
            { { 1469, 19, 0xffffff }, { 1479, 18, 0xffffff }, { 1484, 18, 0xffffff }, { 1474, 24, 0xffffff }, { 1476, 29, 0xffffff } }
        },
        QUICK_BAR = {
            { 764,  671, 0xb210af },
            { 842,  677, 0xb12348 },
            { 911,  671, 0x820378 },
            { 984,  674, 0x7b1b54 },
            { 1060, 674, 0x6a4d2e },
            { 1135, 671, 0x8c10af }
        },

        back_stone_area = { x1 = 733, y1 = 634, x2 = 1175, y2 = 705 },
        back_stone_colors = {
            main_color = 0xdc12b1,
            offsets = "0|1|0xdb14b5,0|2|0xdf11c7",
        },
        random_stone_colors = {
            main_color = 0xda9717,
            offsets = "-1|1|0xe3a220,0|1|0xe8a822",
        }
    },

    -- BOSS地图配置
    BOSS_MAPS = {
        ['封魔谷'] = {
            MOVE_COORDS = { 627, 407 },                -- 移动坐标
            NPC_POINT = { 961, 347, 0x006500 },        -- 传送NPC坐标
            Level1_POINTS = { { 925, 319, 0xc5b803 } } -- 交互界面指定按鈕
        },
        ['死亡棺材'] = {
            MOVE_COORDS = { 627, 419 },                   -- 移动坐标
            NPC_POINT = NPC_POINTS[4],                    -- 传送NPC坐标
            Level1_POINTS = { XINSHOU_LEVEL1_POINTS[2] }, -- 交互界面指定按鈕
        },
        ['牛魔大厅'] = {
            MOVE_COORDS = { 627, 419 },                   -- 移动坐标
            NPC_POINT = NPC_POINTS[4],                    -- 传送NPC坐标
            Level1_POINTS = { XINSHOU_LEVEL1_POINTS[6] }, -- 交互界面指定按鈕
        },
        ['封魔神殿'] = {
            MOVE_COORDS = { 627, 419 },                   -- 移动坐标
            NPC_POINT = NPC_POINTS[4],                    -- 传送NPC坐标
            Level1_POINTS = { XINSHOU_LEVEL1_POINTS[8] }, -- 交互界面指定按鈕
        },
        ['王者禁地'] = {
            MOVE_COORDS = { 627, 419 },                 -- 移动坐标
            NPC_POINT = NPC_POINTS[3],                  -- 传送NPC坐标
            Level1_POINTS = { CHUJI_LEVEL1_POINTS[4] }, -- 交互界面指定按鈕
            Level2_POINTS = { ENTRY_POINT },            -- 交互界面指定按鈕
            BOSS_TIME = 10
            -- BOSS_POSITION = {{797, 272, 0xf5f5f6},{798, 467, 0xebecee}},
        },
        ['沙藏宝阁'] = {
            MOVE_COORDS = { 627, 419 },                 -- 移动坐标
            NPC_POINT = NPC_POINTS[3],                  -- 传送NPC坐标
            Level1_POINTS = { CHUJI_LEVEL1_POINTS[5] }, -- 交互界面指定按鈕
            Level2_POINTS = { ENTRY_POINT },            -- 交互界面指定按鈕
            -- BOSS_POSITION = {{704, 494, 0xf1f2f3},{964, 534, 0xedeeef},{851, 375, 0x877c8c},{635, 357, 0xbeb2ac},{945, 438, 0xfcfcfc},{1153, 524, 0xb7a9a1},{679, 231, 0x9d8d85},{506, 395, 0xc6bbb5},{588, 527, 0xc2b6b0}},
        },
        ['幻境八层'] = {
            MOVE_COORDS = { 627, 419 },                 -- 移动坐标
            NPC_POINT = NPC_POINTS[3],                  -- 传送NPC坐标
            Level1_POINTS = { CHUJI_LEVEL1_POINTS[2] }, -- 交互界面指定按鈕
            Level2_POINTS = { ENTRY_POINT },            -- 交互界面指定按鈕
            -- BOSS_POSITION = {{704, 494, 0xf1f2f3},{964, 534, 0xedeeef},{851, 375, 0x877c8c},{635, 357, 0xbeb2ac},{945, 438, 0xfcfcfc},{1153, 524, 0xb7a9a1},{679, 231, 0x9d8d85},{506, 395, 0xc6bbb5},{588, 527, 0xc2b6b0}},
        },
        ['玛雅神殿'] = {
            MOVE_COORDS = { 627, 419 },                 -- 移动坐标
            NPC_POINT = NPC_POINTS[3],                  -- 传送NPC坐标
            Level1_POINTS = { CHUJI_LEVEL1_POINTS[3] }, -- 交互界面指定按鈕
            Level2_POINTS = { ENTRY_POINT },            -- 交互界面指定按鈕
            -- BOSS_POSITION = {{704, 494, 0xf1f2f3},{964, 534, 0xedeeef},{851, 375, 0x877c8c},{635, 357, 0xbeb2ac},{945, 438, 0xfcfcfc},{1153, 524, 0xb7a9a1},{679, 231, 0x9d8d85},{506, 395, 0xc6bbb5},{588, 527, 0xc2b6b0}},
        },
        ['冰雪仙境'] = {
            MOVE_COORDS = { 627, 419 },                 -- 移动坐标
            NPC_POINT = { 961, 347, 0x006500 },         -- 传送NPC坐标
            Level1_POINTS = { { 925, 319, 0xc5b803 } }, -- 交互界面指定按鈕
            BOSS_POSITION = { { 531, 468, 0x837b7f }, { 820, 626, 0xc5c4ca }, { 824, 293, 0xdad9da }, { 1121, 474, 0xdddcdd } },
        },
        ['混沌之地'] = {
            MOVE_COORDS = { 627, 419 },                 -- 移动坐标
            NPC_POINT = { 961, 347, 0x006500 },         -- 传送NPC坐标
            Level1_POINTS = { { 925, 319, 0xc5b803 } }, -- 交互界面指定按鈕
            BOSS_POSITION = { { 1151, 655, 0xadaca2 }, { 596, 371, 0xa8a18a }, { 946, 429, 0x6a5850 }, { 575, 652, 0x938377 } },
        },
        ['帝墓一层'] = {
            MOVE_COORDS = { 627, 419 },                   -- 移动坐标
            NPC_POINT = NPC_POINTS[2],                    -- 传送NPC坐标
            Level1_POINTS = { ZHONGJI_LEVEL1_POINTS[3] }, -- 交互界面指定按鈕
            Level2_POINTS = { ENTRY_POINT },              -- 交互界面指定按鈕
            -- BOSS_POSITION = {{704, 494, 0xf1f2f3},{964, 534, 0xedeeef},{851, 375, 0x877c8c},{635, 357, 0xbeb2ac},{945, 438, 0xfcfcfc},{1153, 524, 0xb7a9a1},{679, 231, 0x9d8d85},{506, 395, 0xc6bbb5},{588, 527, 0xc2b6b0}},
        },
        ['远古战场'] = {
            MOVE_COORDS = { 627, 419 },                   -- 移动坐标
            NPC_POINT = NPC_POINTS[2],                    -- 传送NPC坐标
            Level1_POINTS = { ZHONGJI_LEVEL1_POINTS[4] }, -- 交互界面指定按鈕
            Level2_POINTS = { ENTRY_POINT },              -- 交互界面指定按鈕
            -- BOSS_POSITION = {{704, 494, 0xf1f2f3},{964, 534, 0xedeeef},{851, 375, 0x877c8c},{635, 357, 0xbeb2ac},{945, 438, 0xfcfcfc},{1153, 524, 0xb7a9a1},{679, 231, 0x9d8d85},{506, 395, 0xc6bbb5},{588, 527, 0xc2b6b0}},
        },
        ['黄金宝阁'] = {
            MOVE_COORDS = { 627, 419 },                   -- 移动坐标
            NPC_POINT = NPC_POINTS[2],                    -- 传送NPC坐标
            Level1_POINTS = { ZHONGJI_LEVEL1_POINTS[5] }, -- 交互界面指定按鈕
            Level2_POINTS = { ENTRY_POINT },              -- 交互界面指定按鈕
            -- BOSS_POSITION = {{704, 494, 0xf1f2f3},{964, 534, 0xedeeef},{851, 375, 0x877c8c},{635, 357, 0xbeb2ac},{945, 438, 0xfcfcfc},{1153, 524, 0xb7a9a1},{679, 231, 0x9d8d85},{506, 395, 0xc6bbb5},{588, 527, 0xc2b6b0}},
        },
        ['黄金宝阁二'] = {
            MOVE_COORDS = { 627, 419 },                   -- 移动坐标
            NPC_POINT = NPC_POINTS[2],                    -- 传送NPC坐标
            Level1_POINTS = { ZHONGJI_LEVEL1_POINTS[3] }, -- 交互界面指定按鈕
            Level2_POINTS = { ENTRY_POINT },              -- 交互界面指定按鈕
            -- BOSS_POSITION = {{704, 494, 0xf1f2f3},{964, 534, 0xedeeef},{851, 375, 0x877c8c},{635, 357, 0xbeb2ac},{945, 438, 0xfcfcfc},{1153, 524, 0xb7a9a1},{679, 231, 0x9d8d85},{506, 395, 0xc6bbb5},{588, 527, 0xc2b6b0}},
        },
        ['boss之家'] = {
            MOVE_COORDS = { 627, 419 },         -- 移动坐标
            NPC_POINT = NPC_POINTS[6],          -- 传送NPC坐标
            Level1_POINTS = { BOSS_POINTS[1] }, -- 交互界面指定按鈕
            -- Level2_POINTS = {{925, 319, 0xc5b803}}, -- 交互界面指定按鈕
            -- BOSS_POSITION = {{704, 494, 0xf1f2f3},{964, 534, 0xedeeef},{851, 375, 0x877c8c},{635, 357, 0xbeb2ac},{945, 438, 0xfcfcfc},{1153, 524, 0xb7a9a1},{679, 231, 0x9d8d85},{506, 395, 0xc6bbb5},{588, 527, 0xc2b6b0}},
        }
    },

    SAFE_ZONES = {
        {
            ENTRY_COORDS = { 536, 452 },
            NPC_POINT = { 313, 371, 800 }
        }
    },

    WINDOW = {
        close_buttons = {
            {
                colors =
                { { 748, 12, 0x98e5e8 }, { 750, 16, 0x32d5db }, { 752, 20, 0x08b1b8 }, { 757, 20, 0x59d9de } }
                ,
                coords = { 748, 12 }
            },
            -- 是否打开客服，关闭客服
            {
                colors =
                { { 809, 27, 0xffe11f }, { 809, 39, 0xffe11f }, { 809, 44, 0xffe11f }, { 807, 54, 0xfee01f } }
                ,
                coords = { 44, 42 }
            },
            -- 是否打开996传奇盒子
            {
                colors =
                { { 1362, 254, 0xb30303 }, { 1362, 263, 0x770202 }, { 1362, 268, 0xb79623 }, { 1362, 284, 0x6b0101 } }
                ,
                coords = { 1362, 254 }
            }
        }
    },
    BOSS = {
        CHECK_INTERVAL = 3500
    },

    COLOR_MATCH = {
        ATTEMPTS = 4,
        RETRY_INTERVAL = 1800
    },

    BAIDU_OCR = {
        API_KEY = "1iCsjUpZ95zCoqSIVNOsxwYe",
        SECRET_KEY = "PRmiCrBtFWBxukMFOKsS7Cl1zGBBr9QQ",
        OCR_URL = "https://aip.baidubce.com/rest/2.0/ocr/v1/numbers"
    }
}

return Config
